package cn.change.basic.query;

import lombok.Data;

/**
 * @author 16252
 */
@Data
public class BaseQuery {
    /**当前页：默认为1*/
    private Integer currentPage = 1;

    private  Integer pageSize = 5;
    private  String keyword;
    /**计算limit的第一个参数，当前页的起始下标*/
    public Integer getBegin(){
        return (this.currentPage-1) * this.pageSize;
    }
}
